package mshop.com.schild_kotlin.mvp.model

import android.content.Context
import io.reactivex.Observable
import mshop.com.schild_kotlin.entitys.SearchBean
import mshop.com.schild_kotlin.mvp.base.BaseModel

/**
 * Created by mayi on 2018/5/28.
 * @Autor CaiWF
 * @Email 401885064@qq.com
 * @TODO
 */
class SearchModel:BaseModel(){

    fun loadData(start:Int,searchKey:String,mContext:Context):Observable<SearchBean>{
       return getApiService(mContext).getSearchData(10,searchKey,start)
    }
}